package com.cc8w.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * 目标对象的增强切面
 * @author Administrator
 *
 */
@Aspect
@Component
public class TargetAspect {

	public void before() {
		System.out.println("前置增强切面...");
	}
	
	@After("execution(public void com.cc8w.aop.TargetImpl.save())")
	public void after() {
		System.out.println("save后置增强切面(记录登录ip)...");
	}
	
}
